<?php

namespace App\Http\Requests;

class AddressDetailRequest extends BaseRequest {
    /**
     * Get the validation rules that apply to the request.
     * @return string[]
     */
    public function rules(): array
    {
        return [
            'id' => 'required|integer'
        ];
    }

    public function messages(): array
    {
        return [
            'id.required' => '地址参数不能为空',
            'id.integer' => '地址参数不正确'
        ];
    }
}
